package router

import (
	"api_gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func UserRouter(router *gin.RouterGroup) {
	{
		user := router.Group("user")
		{
			user.POST("register", api.Register)
			user.POST("login", api.Login)
			user.POST("upload", api.Upload)
			user.POST("list", api.ListHome)
			user.POST("listVideo", api.ListVideo)
			user.POST("delVideo", api.DelVideo)
			user.POST("info", api.Info)
		}
	}
}
